<form nz-form *ngIf="!isLoading" [formGroup]="validateForm" (ngSubmit)="submitForm()" style="border-bottom: 1px solid #1890ff;margin-bottom: 10px;">
  <nz-form-item>
    <nz-form-label [nzSpan]="3" nzRequired nzFor="beAutomatic">是否开启自动升级</nz-form-label>
    <nz-form-control [nzSpan]="4" [nzValidateStatus]="validateForm.controls['beAutomatic']">
      <nz-radio-group formControlName="beAutomatic">
        <label nz-radio [nzValue]="1">是</label>
        <label nz-radio [nzValue]="2">否</label>
      </nz-radio-group>
      <nz-form-explain
        *ngIf="validateForm.get('beAutomatic').dirty && validateForm.get('beAutomatic').hasError('required')">
        请选择是否开启自动升级
      </nz-form-explain>
    </nz-form-control>
    <nz-form-label [nzSpan]="3" nzRequired nzFor="teamNum">升级团队数</nz-form-label>
    <nz-form-control [nzSpan]="4" [nzValidateStatus]="validateForm.controls['teamNum']">
      <nz-input-number style="width: 100%;" [nzMin]="0" [nzStep]="1" [nzPlaceHolder]="'升级团队数'"
                       formControlName="teamNum"></nz-input-number>
      <nz-form-explain *ngIf="validateForm.get('teamNum').dirty && validateForm.get('teamNum').hasError('required')">
        请输入升级团队数
      </nz-form-explain>
    </nz-form-control>
    <nz-form-label [nzSpan]="3" nzRequired nzFor="teamAchievement">升级团队总额</nz-form-label>
    <nz-form-control [nzSpan]="4" [nzValidateStatus]="validateForm.controls['teamAchievement']">
      <nz-input-number style="width: 100%;" [nzMin]="0" [nzStep]="1" [nzPlaceHolder]="'升级团队总额'"
                       formControlName="teamAchievement"></nz-input-number>
      <nz-form-explain
        *ngIf="validateForm.get('teamAchievement').dirty && validateForm.get('teamAchievement').hasError('required')">
        请输入升级团队总额
      </nz-form-explain>
    </nz-form-control>

    <nz-form-label [nzSpan]="3" >
      <button nz-button type="submit" [nzType]="'primary'">保存</button>
    </nz-form-label>

  </nz-form-item>
</form>
